<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
<link rel="stylesheet" type="text/css" href="naive.css" />
   <script type="text/javascript">
   function reloadCode()
        {
            var time=new Date().getTime();
            document.getElementById("imagecode").src="<%= request.getContextPath()%>/servlet/ImageServlet?d="+time;
       }
    </script>
</head>
<body>
<h1 class="p">学生信息管理登录</h1><br>
<center>
	<form action="<%= request.getContextPath()%>/servlet/LoginServlet" method="get" >
		
		<!-- 账号密码 -->
		UserName:<input type="text" name="username" maxlength="11" size="20" class="ac"><br><br>
		Password:<input type="password" name="password" maxlength="11" size="21"><br><br>&nbsp &nbsp &nbsp &nbsp &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp 
   		
   		<!-- 验证码 -->
 		验证码:<input  type="text" name="checkCode"/>
   	 	<img alt="验证码" id="imagecode" src="<%= request.getContextPath()%>/servlet/ImageServlet"/>
   	 	<a href="javascript:reloadCode();">看不清楚</a><br><br>
    	
    	<input type="submit" value="提交">
	</form> 
</center>
</body>
</html>